<?php 
@session_start();
?>
<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8">
    <title>Login</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="description" content="">
    <meta name="author" content="">

    <!-- Le styles -->
    <meta name="viewport" content="initial-scale=1,maximum-scale=1,user-scalable=no">
	<link rel="stylesheet" type="text/css" href="assets/css/bootstrap.min.css" />
	<link rel="stylesheet" type="text/css" href="assets/css/bootstrap-responsive.css" />
	<link rel="stylesheet" href="assets/css/font-awesome.css" type="text/css">
    <style type="text/css">
      body {
        padding-top: 20px;
        padding-bottom: 40px;
      }

      /* Custom container */
      .container-narrow {
        margin: 0 auto;
        max-width: 900px;
      }
      .container-narrow > hr {
        margin: 30px 0;
      }

      /* Main marketing message and sign up button */
      .jumbotron {
        margin: 60px 0;
        text-align: center;
      }
      .jumbotron h1 {
        font-size: 72px;
        line-height: 1;
      }
      .jumbotron .btn {
        font-size: 21px;
        padding: 14px 24px;
      }

      /* Supporting marketing content */
      .marketing {
        margin: 60px 0;
      }
      .marketing p + h4 {
        margin-top: 28px;
      }
    </style>
    <link href="assets/css/bootstrap-responsive.css" rel="stylesheet">

    <!-- HTML5 shim, for IE6-8 support of HTML5 elements -->
    <!--[if lt IE 9]>
      <script src="assets/js/html5shiv.js"></script>
    <![endif]-->

   
  </head>

  <body>

    <div class="container">

    <div class="navbar navbar navbar-fixed-top navbar-inverse">
  <div class="navbar-inner">
    <div class="container">
     <ul class="nav">
          <li><a href="index.html"><i class='icon-home'></i>&nbsp;Home</a></li>
          
          <li><a href="blog.php"><i class='icon-rss'></i>&nbsp;News</a></li>
         
          <li><a href="contact.php"><i class='icon-envelope-alt'></i>&nbsp;Contact</a></li>
        </ul>
        
        <div class="btn-group pull-right" data-toggle="buttons-radio">
		  <a href="javascript:void" class="btn active">Sign in</a>
		  <a href="signup.php" class="btn btn-danger">Sign up</a>
		  
		</div>
    </div>
  </div>
</div>
   
	<div class='row-fluid' style='margin-top:43px'>
    <div class='span4'>
    
    </div>
    
    <div class='span8'>
      <?php
					if( isset($_SESSION['ERRMSG_ARR']) && is_array($_SESSION['ERRMSG_ARR']) && count($_SESSION['ERRMSG_ARR']) >0 ) {
						echo "<div class='alert alert-error'>";
						foreach($_SESSION['ERRMSG_ARR'] as $msg) {
							echo "<span><i class='icon-minus'></i>",$msg,"</span><br/>"; 
						}
						echo "</div><br/>";
					}
					unset($_SESSION['ERRMSG_ARR']);
					
					if(isset($_SESSION['logout'])){
		echo "<div class='alert alert-success'>" . $_SESSION['logout'] . "</div>";
		}
		unset($_SESSION['logout']);
	if(isset($_SESSION['user_login_need'])){
		echo "<div class='alert'>" . $_SESSION['user_login_need'] . "</div>";
		}
	unset($_SESSION['user_login_need']);
					
					?>
<?php 
if(isset($_GET['repass']) && $_GET['repass']=="success"){
?>
<div class="alert alert-success">Dear User, you have successfully reseted your password.</div>
<?php 
}
?>
 <form class="form-horizontal" action='execute/login.php' method="POST">
  <fieldset>
    <div id="legend">
      <legend class="">Login to TECHEDU</legend>
    </div>
    
 
    <div class="control-group">
      <!-- E-mail -->
      <label class="control-label" for="email">E-mail</label>
      <div class="controls">
        <input type="text" id="email" name="email" placeholder="" class="input-xlarge">
        <p class="help-block">Please provide your E-mail</p>
      </div>
    </div>
 
    <div class="control-group">
      <!-- Password-->
      <label class="control-label" for="password">Password</label>
      <div class="controls">
        <input type="password" id="password" name="password" placeholder="" class="input-xlarge">
        <p class="help-block">Your Password Please</p>
      </div>
    </div>
 
 
    <div class="control-group">
      <!-- Button -->
      <div class="controls">
        <p><button type="submit" class="btn btn-success">Sign into your account</button> Or
<a href='#' class="repass">Recover your password</a>
</p>
      </div>
    </div>
  </fieldset>
</form>
    </div>
</div>
     
    </div> <!-- /container -->
    <hr>
    <div class="container">	
<div class="row-fluid">
				<div class="span12">
				
				<div class='span5'>
					<address>
						  <strong>TechNation, Afghanistan</strong><br>
						  Shahid Abdul Haq Square 
							Dunya Plaza<br/>
							Ground Floor <br>
						  Kabul, Afghanistan<br>
						  <abbr title="Phone">Phone:</abbr> (+93) (0) 70 616 9995<br/>
						  <abbr title="Email">Email:</abbr> <a href="mailto:info@technation.af">info@technation.af</a><br/>
						</address>
					</div>
					
					
					<div class="span7">
						<h3>Get Social: <a href='#'><i class='icon-facebook-sign'></i></a>&nbsp;<a href='#'><i class='icon-linkedin-sign'></i></a>&nbsp;<a href='#'><i class='icon-twitter-sign'></i></a>&nbsp;<a href='#'><i class='icon-google-plus-sign'></i></a></h3>
						  <h2>Newsletter</h2>
						    
						  <p>Subscribe to our weekly Newsletter and stay tuned.</p>
						    
						 <form class="form-search">
					        <div class="input-append">
					            <input type="text">
					            <button type="submit" class="btn btn-primary">Subscribe Now</button>
					        </div>
					    </form>
						
					</div>
					
					
					
					
					
									
				</div>
			</div>
			<hr>
			<div class="row-fluid">
				<div class="span12">
					<div class="span8">
						<ul class='nav nav-pills'>
						<li><a href="#">Terms of Service</a> </li>   
						<li><a href="#">Privacy</a> </li>   
						<li><a href="#">Security</a></li>
						
						</ul>
					</div>
					<div class="span4">
						<p class="muted pull-right">&copy; 2013 TECHNATION. All rights reserved</p>
					</div>
				</div>
			</div>
  </div>
  
  <div class="modal small hide fade" id="reset-modal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
    <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal" aria-hidden="true">x</button>
        <h3 id="myModalLabel">Reset your Password</h3>
    </div>
    <div class="modal-body">
        <form name="submit2" method="post" action="reset-email.php" style="margin-top:10px;">
        	<p>Your email address: &nbsp;
        	<input type="email" required name="email" class="span5" placeholder="Enter a valid email..." style="margin-top:8px;"></p>
        
    </div>
    <div class="modal-footer">
        <button class="btn" data-dismiss="modal" aria-hidden="true">Cancel</button>
        <input type="submit" class="btn btn-danger" value="Send!">
    </form>
    </div>
</div>

    <!-- Le javascript
    ================================================== -->
    <!-- Placed at the end of the document so the pages load faster -->
	<script type="text/javascript" src="assets/js/jquery-1.8.0.min.js"></script>
    <script src="assets/js/bootstrap-alert.js"></script>
    <script src="assets/js/bootstrap-modal.js"></script>
    <script src="assets/js/bootstrap-dropdown.js"></script>
    <script src="assets/js/bootstrap-typeahead.js"></script>
    <script src="assets/js/bootstrap-transition.js"></script>
    <script type="text/javascript">
		$(function(){
			$(".repass").live("click",function(){
				$("#reset-modal").modal();
			});
		});
    </script>

  </body>
</html>
